package me.zhengjie.util;

import org.springframework.stereotype.Component;

import java.util.Random;

@Component
public class UniqueCodeUtil {
    public static String createCode(){

        // 获取当前时间的毫秒级时间戳
        long currentTimeMillis = System.currentTimeMillis();

        // 合并时间戳和随机数
        return Long.toString(currentTimeMillis);
    }
}
